﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "Roles", Lazy = true)]
    public class Role : ILegacy
    {
        public const string ADMIN_ROLE = "Administrator";

        public Role() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [Property]
        public virtual string Code { get; set; }

        [Property]
        public virtual string LegacyApplication { get; set; }

        [Property]
        public virtual string LegacyID { get; set; }

        [Property]
        public virtual bool IsAvailableForSalary { get; set; }

        [Property]
        public virtual string SFACode { get; set; }

        [Property]
        public virtual string SFBCode { get; set; }
    }
}
